﻿using DevExpress.ExpressApp.Blazor;
using Microsoft.AspNetCore.Components;

namespace EasyXaf.EntityDesigner.Editors.EntityAssociationEditors;

public class EntityAssociationAdapter : IComponentContentHolder
{
    public EntityAssociationModel Model { get; }

    public RenderFragment ComponentContent => EntityAssociationRenderer.Create(Model);

    public EntityAssociationAdapter(EntityAssociationModel model)
    {
        Model = model;
    }
}
